The phrase "to turn the corner" means to pass a difficult or challenging moment and enter a better or easier situation.